<?php

namespace app\admin\controller\weixin;

use app\common\controller\Backend;

/**
 * 微信模板
 *
 * @icon fa fa-circle-o
 */
class Template extends Backend
{

    /**
     * Wechat模型对象
     * @var \app\admin\model\weixin\Template
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\admin\model\weixin\Template;

        //得到所属行业
        $this->assign('industry', $this->model->getIndustry());

        //同步模板
        $this->model->getTemplates();

        //开启模型验证
        $this->modelValidate = true;
    }

}
